<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文件管理</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f4f4f4;
        }

        .container {
            width: 80%;
            margin: 20px auto;
            overflow: hidden;
            background: #fff;
            padding: 20px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }

        header {
            background: #333;
            color: #fff;
            padding: 20px;
            text-align: center;
        }

        nav {
            display: flex;
            justify-content: center;
            background: #555;
            padding: 10px 0;
        }

        nav a {
            color: white;
            text-decoration: none;
            padding: 0 15px;
        }

        nav a:hover {
            background: #444;
        }

        .file-list {
            list-style: none;
            padding: 0;
        }

        .file-list li {
            background: #fff;
            border: 1px solid #ddd;
            margin-bottom: 10px;
            padding: 10px;
        }

        .file-list li:hover {
            background: #f9f9f9;
        }

        .file-name {
            font-weight: bold;
        }

        .file-size,
        .file-type,
        .file-actions {
            font-size: 0.9em;
            color: #666;
        }

        .file-actions a {
            padding: 5px 10px;
            background: #333;
            color: #fff;
            border: none;
            cursor: pointer;
            text-decoration: none;
            margin-right: 5px;
            display: inline-block;
        }

        .file-actions a:hover {
            background: #444;
        }

        .upload {
            margin-top: 20px;
        }

        footer {
            background: #333;
            color: #fff;
            text-align: center;
            padding: 10px 0;
            position: relative;
            bottom: 0;
            width: 100%;
        }
    </style>

</head>

<body>
<header>
    <h1>文件管理</h1>
</header>
<nav>
    <a href="index.html">返回首页</a>
</nav>
<div class="container">
    <h2>文件列表</h2>
    <ul class="file-list">
        <!-- 复制上面的 <li> 来创建更多的文件条目 -->
    </ul>

    <h2>上传文件</h2>
    <form>
        <input type="file" accept="image/jpeg, image/png" class="file" name="file">
        <input type="button" class="upload" value="上传文件">
    </form>
</div>
<footer>
    <p>版权所有 © 2024 新闻网站</p>
</footer>
</body>
<script src="./js/jquery-3.7.1.min.js"></script>
<script type="module" src="file_management.js"></script>

</html>